package com.sen;

public class Rover {
    private String direction = "N";

//    public boolean rotateRight() {
//    }

    public String excute(String commands) {
        for (char c : commands.toCharArray()) {
            direction = rotatRight();

        }
        return "0:0:" + direction;
    }

    private String rotatRight() {
        if (direction.equals("N")) {
            return "E";
        } else if (direction.equals("E")) {
            return "S";
        } else if (direction.equals("S")) {
            return "W";
        } else {
            return "N";
        }
    }
}
